package com.ecb.business.dto.chain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddChainDTO {
    private int id;
    private String authType;
    private String chainId;
    private List<ChainNodeDTO> chainNodes;
    private String orgId;
    private String pkcs11__enabled;
    private int retryInterval;
    private int retryLimit;
    private int rpcClientMaxReceiveMessageSize;
    private String userCrt;
    private String userKey;
    private String userSignCrt;
    private String userSignKey;
}

//{
//        "authType": "permissionedWithcert",
//        "auth_type": "permissionedWithcert",
//        "chainId": "testbc",
//        "chainNodes": [
//            {
//                "connCnt": 10,
//                "conn_cnt": 10,
//                "enableTls": true,
//                "enable_tls": true,
//                "nodeAddr": "192.168.129.9:12301",
//                "node_addr": "192.168.129.9:12301",
//                "tlsHostName": "chainmaker.org",
//                "tls_host_name": "chainmaker.org",
//                "trustRootPaths": [
//                    "/Users/wtlu/ep/other/sdk-java-demo-v2.3.1.3/src/main/resources/crypto-config/TestCMorg1/ca"
//                ],
//                "trust_root_paths": [
//                    "/Users/wtlu/ep/other/sdk-java-demo-v2.3.1.3/src/main/resources/crypto-config/TestCMorg1/ca"
//                ]
//            }
//        ],
//        "orgId": "TestCMorg1",
//        "pkcs11": {
//            "enabled": false
//        },
//        "retryInterval": 500,
//        "retryLimit": 10,
//        "rpcClient": {
//            "maxReceiveMessageSize": 16,
//            "max_receive_message_size": 16
//        },
//        "rpc_client": {
//            "maxReceiveMessageSize": 16,
//            "max_receive_message_size": 16
//        },
//    }